#include "TCPServer.hpp"
#include "CommandExec.hpp"

int main()
{
    ENABLE_CONSOLE_LOG();
    Command cmd;
    // 传入handler方法，也就是Command
    unique_ptr<TcpServer> tsvr = make_unique<TcpServer>([&cmd](string cmdstr){
        return cmd.Execute(cmdstr);
    });
    tsvr->InitServer();
    tsvr->Start();

    return 0;
}